import { createRouter, createWebHistory } from 'vue-router'
import homeView from '@/views/home/index.vue'
import shouyeView from '@/views/home/shouye/index.vue'
import cheyouquanView from '@/views/home/cheyouquan/index.vue'
import xuancheView from '@/views/home/xuanche/index.vue'
import ershoucheView from '@/views/home/ershouche/index.vue'
import fuwuView from '@/views/home/fuwu/index.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/home/shouye' },
    {
      path: '/home',component: homeView,children:
      [
        {path: 'shouye',component: shouyeView},
        {path: 'cheyouquan',component: cheyouquanView},
        {path: 'xuanche',component: xuancheView},
        {path: 'ershouche',component: ershoucheView},
        {path: 'fuwu',component: fuwuView},
      ]
    },

  ],
})

export default router
